<?php
include("config.php");
require("fonctions.php");
$code = $_GET["error"];
$lang = $_POST["lang"];
if ($lang == "FR") {
    $lang = "FR";
    include("lang/fr_lang.php");
} elseif ($lang == "EN") {
    $lang = "EN";
    include("lang/en_lang.php");
} else {
    $lang = "FR";
    include("lang/fr_lang.php");
}
?>
<HTML>
    <HEAD>
        <TITLE>Type de programme</TITLE>
        <link rel="stylesheet" type="text/css" href="style.css">  
    </HEAD>

    <BODY>
        <div class="login">
             <?php echo error_message($code); ?>
            <form action="controler.php?action=type_prog" method="post" >
                <fieldset>
                    <legend><?php echo TXT_TYP_PROG; ?> :</legend>
                    <!--<label for="identifiant"><?php echo TXT_PART; ?> :</label>
                    <select name="type_part">
                        <option value="0"></option>
                        <option value="Radio locale">Radio locale</option>
                        <option value="Presse">Presse</option>
                        <option value="Radio mainstream">Radio mainstream</option>
                        <option value="TV">TV</option>
                        <option value="Journalisme citoyen">Journalisme citoyen</option>
                        <option value="Autres">Autres</option>
                    </select> -->
                    <label for="identifiant"><?php echo TXT_PROG_THEME; ?> :</label>
                    <select name="type_prog_theme">
                        <option value="0"></option>
                         <?php
                        $sql = "select * from type_program_themes";
                        $res = mysql_query($sql);
                        while ($r = @@mysql_fetch_object($res)) {
                            ?>
                            <option value="<?php echo $r->id; ?>"><?php echo $r->descr; ?></option>
                        <?php } ?>

                    </select>
                    
                    <label for="identifiant"><?php echo  TXT_TYP_PROG_LABEL;; ?> </label>
                    <select name="type_prog">
                        <option value="0"></option>
                        <?php
                        $sql = "select * from type_productions";
                        $res = mysql_query($sql);
                        while ($r = @@mysql_fetch_object($res)) {
                            ?>
                            <option value="<?php echo $r->id; ?>"><?php echo $r->descr; ?></option>
                        <?php } ?>
                    </select>

                    <input type="submit" value="<?php echo TXT_BOUTON_VALIDER; ?>" />

                </fieldset>
            </form>
        </div>
        <?php
        require_once ("footer.php");
        ?>
